/*
 ============================================================================
 Name		: playDocument.cpp
 Author	  : CODIO
 Copyright   : CODIO
 Description : CplayDocument implementation
 ============================================================================
 */

// INCLUDE FILES
#include "playAppUi.h"
#include "playDocument.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CplayDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CplayDocument* CplayDocument::NewL(CEikApplication& aApp)
	{
	CplayDocument* self = NewLC(aApp);
	CleanupStack::Pop(self);
	return self;
	}

// -----------------------------------------------------------------------------
// CplayDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CplayDocument* CplayDocument::NewLC(CEikApplication& aApp)
	{
	CplayDocument* self = new (ELeave) CplayDocument(aApp);

	CleanupStack::PushL(self);
	self->ConstructL();
	return self;
	}

// -----------------------------------------------------------------------------
// CplayDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CplayDocument::ConstructL()
	{
	// No implementation required
	}

// -----------------------------------------------------------------------------
// CplayDocument::CplayDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CplayDocument::CplayDocument(CEikApplication& aApp) :
	CAknDocument(aApp)
	{
	// No implementation required
	}

// ---------------------------------------------------------------------------
// CplayDocument::~CplayDocument()
// Destructor.
// ---------------------------------------------------------------------------
//
CplayDocument::~CplayDocument()
	{
	// No implementation required
	}

// ---------------------------------------------------------------------------
// CplayDocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CplayDocument::CreateAppUiL()
	{
	// Create the application user interface, and return a pointer to it;
	// the framework takes ownership of this object
	return new (ELeave) CplayAppUi;
	}

// End of File
